<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>局部组件</title>
		<script src="../js/vue.js"></script>
		<script src="../js/vue-router.js"></script>
	</head>
	<body>
		<div id="app">
			<name></name>
		</div>
		<template id="temp">
			<div>
				<h1>xiediansha</h1>
			</div>
		</template>
		<script>
		const age = {
			template:"#temp"
		}
		const app = new Vue({
			el:"#app",
			components:{
				name:age
			}
		})
		</script>
	</body>
</html>
